package com.ruoyi.mes.domain;

import java.util.HashMap;
import java.util.Map;

public class DeviceStatus {
    private String device;
    private String status;
//    private String topic;

//    public Map<String, String> getA() {
//        return a;
//    }
//
//    public void setA(Map<String, String> a) {
//        this.a = a;
//    }
//
//    private Map<String,String> a;


    public DeviceStatus() {
    }

    public DeviceStatus(String device, String status) {
        this.device = device;
        this.status = status;
    }

    // Getters and setters
    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


//    public String getTopic() {
//        return topic;
//    }
//
//    public void setTopic(String topic) {
//        this.topic = topic;
//    }

    @Override
    public String toString() {
        return "DeviceStatus{" +
                "device='" + device + '\'' +
                ", status=" + status +
                '}';
    }

//    public void setA(String as, String device) {
//        this.a = new HashMap<>();
//        this.a.put(as, device);
//    }
}
